package GameMain.View.FuBen
{
	import Engine.Module.ViewBase;
	
	import GameMain.Game;
	import GameMain.Macro.Macro;
	import GameMain.Macro.MacroEvent;
	
	import flash.display.Sprite;
	
	public class FuBen extends ViewBase
	{
		
		public function FuBen(p_content:Sprite=null)
		{
			super(p_content);
			
			Game.ControlMgr.getButton(this._content["CLOSE"]).setOnClickFun(this.dispose);
			Game.ControlMgr.getButton(this._content["FB_1"]).setOnClickFun(gotoFuben1);
			Game.ControlMgr.getButton(this._content["FB_2"]).setOnClickFun(gotoFuben2);
			Game.ControlMgr.getButton(this._content["FB_3"]).setDisable();
			Game.ControlMgr.getButton(this._content["FB_4"]).setDisable();
			Game.ControlMgr.getButton(this._content["FB_5"]).setDisable();
			Game.ControlMgr.getButton(this._content["FB_6"]).setDisable();
			Game.ControlMgr.getButton(this._content["FB_7"]).setDisable();
			Game.ControlMgr.getButton(this._content["FB_8"]).setDisable();
			this.x = 100;
			this.y = 50;
		}
		
		private function gotoFuben1():void
		{
			Game.ModuleMgr.getModule(Macro.MODULE_WAIT_GAME)["onRegesterWaitGame"]();
			Game.EngineMgr.sendMessageData(MacroEvent.MSG_TO_SERVER_FUBEN,null);
		}
		
		private function gotoFuben2():void
		{
			
		}
		
		
	}
}